﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="ViewStationeryCatalogue.aspx.cs" Inherits="PresentationLayer.ViewStationeryCatalogue" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div align="center">
        <h2>Stationery Catalogue</h2>
        
        <br />
        <table>
            <tr>
                <td>
                    <asp:Label ID="Label2" runat="server" Text="Category :"></asp:Label>
                </td>
                <td>
                    <asp:DropDownList ID="ddlCategory" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlCategory_SelectedIndexChanged1" CssClass="form-control">
        </asp:DropDownList>
                </td>
            </tr>
        </table>
        <br />
        <asp:GridView ID="dgvCatalogue" runat="server" AutoGenerateColumns="False" AllowPaging="True"
            OnPageIndexChanging="dgvCatalogue_PageIndexChanging" CssClass="table table-hover table-striped table-bordered" Width="50%">
            <Columns>
                <asp:BoundField DataField="ItemName" HeaderText="Item Name" />
                <asp:BoundField DataField="CategoryName" HeaderText="Category" />
                <asp:BoundField DataField="UOM" HeaderText="Unit of Measure" />
                <asp:BoundField DataField="AvailableQty" HeaderText="Quantity Available" />
            </Columns>
            <PagerSettings FirstPageText="First" LastPageText="Last" Mode="NextPreviousFirstLast" NextPageText="Next" PageButtonCount="4" PreviousPageText="Previous" />
        </asp:GridView>
        <br />
    </div>
</asp:Content>
